package com.fh.client;


import com.fh.fallback.OrderSubmitClientFallback;
import com.fh.fallback.OrderitemClientFallback;
import com.fh.model.OrderItem;
import com.fh.model.Orders;
import com.fh.model.vo.ShoppingCartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "orderitem-add",fallback = OrderitemClientFallback.class)
public interface OrderitemClient {
    @PostMapping("item/add")
    public  int addOrderitem(@RequestBody OrderItem orderItem);


}
